mtd: spi: Port SPI NOR framework from Linux
authorVignesh R <[email protected]>
Tue, 5 Feb 2019 05:59:17 +0000 (11:29 +0530)
committerJagan Teki <[email protected]>
Thu, 7 Feb 2019 10:03:21 +0000 (15:33 +0530)
commit7aeedac01534ab343c28abed60f8e0fb9311bbee
tree4edf0ddcc4e5d17c7054dd3afff08e567991280a
parentce13c19f4cb4bfd24c3c213d3eb9ad86b2c4b91b
mtd: spi: Port SPI NOR framework from Linux

Current U-Boot SPI NOR support (sf layer) is quite outdated as it does not
support 4 byte addressing opcodes, SFDP table parsing and different types of
quad mode enable sequences. Many newer flashes no longer support BANK
registers used by sf layer to a access >16MB of flash address space.
So, sync SPI NOR framework from Linux v4.19 that supports all the
above features. Start with basic sync up that brings in basic framework
subsequent commits will bring in more features.

Signed-off-by: Vignesh R <[email protected]>
Tested-by: Simon Goldschmidt <[email protected]>
Tested-by: Stefan Roese <[email protected]>
Tested-by: Horatiu Vultur <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
Tested-by: Jagan Teki <[email protected]> #zynq-microzed
drivers/mtd/spi/spi-nor-core.c [new file with mode: 0644]
include/linux/mtd/cfi.h [new file with mode: 0644]
include/linux/mtd/spi-nor.h [new file with mode: 0644]